<?php
$data->defaultImage=$data->genderCode==Option::GENDER_FEMALE? $this->imagesPath.'/female.gif': $this->imagesPath.'/male.gif';
?>
<header><h1><?php echo Lang::t('admin.profile.view.page.title'); ?> #<?php echo $data->id; ?></h1></header>

<?php
$this->widget('ext.extended.DetailView', array(
    'data' => $data,
    'attributes' => array(
        array(
            'type'=>'image',
            'value'=>$data->avatar,
        ),
        array(
            'name' => 'userRole_',
            'value' => $data->role,
        ),
        array(
            'name' => 'language_',
            'value' => $data->preferredLanguage,
        ),
        array(
            'name' => 'status_',
            'value' => $data->status,
        ),
        array(
            'name' => 'username_',
            'value' => $data->displayName,
        ),
        array(
            'name' => 'name_',
            'value' => $data->name,
        ),
        array(
            'name' => 'firstName_',
            'value' => $data->firstName,
        ),
        array(
            'name' => 'lastName_',
            'value' => $data->lastName,
        ),
        array(
            'name' => 'gender_',
            'value' => $data->gender,
        ),
        array(
            'name' => 'dob_',
            'value' => $data->birthDate,
        ),
        array(
            'name' => 'ethnic_',
            'value' => $data->ethnic,
        ),
        array(
            'name' => 'religion_',
            'value' => $data->religion,
        ),
        array(
            'name' => 'maritalStatus_',
            'value' => $data->maritalStatus,
        ),
        array(
            'name' => 'phoneNumber_',
            'value' => $data->phoneNumber,
        ),
        array(
            'name' => 'faxNumber_',
            'value' => $data->faxNumber,
        ),
        array(
            'name' => 'mobileNumber_',
            'value' => $data->mobileNumber,
        ),
        array(
            'name' => 'email_',
            'value' => $data->email,
        ),
        array(
            'name' => 'address_',
            'value' => $data->fullAddress,
        ),
        array(
            'name'=>'latitude_',
            'value'=>$data->addressLatitude,
        ),
        array(
            'name'=>'longitude_',
            'value'=>$data->addressLongitude,
        ),
        array(
            'name' => 'Created Date',
            'value' => date('d-M-Y H:i:s', $data->createdTime),
        ),
        array(
            'name'=>'Creator',
            'value'=>$data->creatorName,
        ),
        array(
            'name' => 'Modified Date',
            'value' => date('d-M-Y H:i:s', $data->updatedTime),
        ),
        array(
            'name'=>'Modifier',
            'value'=>$data->editorName,
        ),
    ),
));
?>